package csvs

import (
	"MyWuXiaGame/server/src/utils"
)

type ConfigIcon struct {
	IconId int `json:"IconId"`
}

var (
	ConfigIconMap         map[int]*ConfigIcon
)

func init() {
	ConfigIconMap = make(map[int]*ConfigIcon)
	utils.GetCsvUtilMgr().LoadCsv("Icon", &ConfigIconMap)
	return
}

func GetIconConfig(iconId int) *ConfigIcon {
	return ConfigIconMap[iconId]
}
